<template>
	<div class="regBox" v-if="is_show">
		<div class="regBox_pub"></div>
		<div class="regBox_main">
			<b>{{$t('h_pcreg.title6')}}</b>
			<div class="forms">
				<div class="pagemsg" v-html="$t('h_pcreg.title15')">
					
				</div>
				<button class="submit" @click="closeUserMsg">{{$t('h_pcreg.title16')}}</button>
			</div>
			<div class="closeBtn" @click="closeUserMsg">
				
			</div>
		</div>
		
		
	</div>
</template>

<script>
	export default {
		data() {
			return {
				is_show:false,
				step:0,
				checked:true,
				message:'<p style="text-align: center;">&nbsp;</p><p>1. 为避免于本公司投注时之争议，请会员务必于进入app前详阅本公司定制各项规则，客户一经“我同意”进入本公司进行投注时，即被视为已接受本公司。</p><p>2. 会员有责任确保自己的帐户以及登入资料的保密性，以会员帐号及密码进行的任何线上投注，将被视为有效。敬请不定时做密码变更之动作。若帐号密码被盗用，进行的投注，本公司一概不负赔偿责任。</p><p>3. 本公司保留不定时更改本协定或游戏规则或保密条例，更改之条款将从更改发生后指定之日起生效，并保留一切有争议事项及最后的决策权。</p><p>4. 用户须达到居住地国家法律规定之合法年龄方可使用线上娱乐场或app。网上投注如未能成功提交投注将被视为无效。</p><p>5. 凡玩家于出牌途中且尚无结果前自动或强制断线时，并不影响比赛之结果。</p>',
				formData: {
					username: '',
					password: '',
					password_cp: ''
				}
			};
		},
		methods: {
			openUserMsg(){
				this.is_show = true
			},
			closeUserMsg(){
				this.is_show = false
			},
		}
	}
</script>

<style lang="less" scoped>
	.regBox {
		position: fixed;
		z-index: 1000;
		width: 100vw;
		height: 100vh;
		overflow-y: overlay;
		top:0;
		left: 0;
		
		.closeBtn{
			position: absolute;
			border-radius: 50%;
			z-index: 3;
			bottom: -.9rem;
			left: 0;
			right: 0;
			margin: auto;
			width: 0.5984rem;
			height: 0.5984rem;
			background-image: url(/icons/main.png);
			background-position: -5.1136rem -4.2024rem;
			background-size: 8.296rem 7.7928rem;
		}
		&_pub {
			position: fixed;
			z-index: 1;
			width: 100vw;
			height: 100vh;
			width: 100vw;
			height: 100vh;
			background: rgba(0, 0, 0, .6);
		}

		&_main {
			position: absolute;
			z-index: 2;
			background-color: var(--theme-main-bg-color);
			border: thin solid;
			border-color: var(--theme-color-line);
			border-radius: 0.2rem;
			position: absolute;
			top: 26vh;
			left: 0;
			right: 0;
			width: 6rem;
			height: 6.8rem;
			margin: auto;

			.forms {
				max-height: 7rem;
				overflow-x: hidden;
				overflow-y: overlay;
				padding: 0 0.36rem;
				display: flex;
				flex-direction: column;
				.pagemsg{
					max-height: 4.6rem;
					overflow-y: overlay;
					color: var(--theme-text-color);
					font-size: .2rem;
					margin-bottom: .3rem;
				}
			}
			.el-input{
				margin: 0 0 .32rem;
			}
			p {
				font-size: .18rem;
				height: 0.4rem;
				line-height: 1;
				color: var(--theme-secondary-color-error);
				margin: .16rem 0 .06rem .16rem;
				opacity: .7;
			}

			b {
				margin: 0.4rem 0 0.1rem;
				color: var(--theme-text-color-darken);
				font-size: .26rem;
				font-weight: 700;
				height: 0.34rem;
				display: block;
				text-align: center;
			}
			.msg{
				display: flex;
				margin-bottom: .3rem;
				span{
					font-size: .26rem;
					color: var(--theme-text-color-lighten);
					margin: 0 0 0 .1rem ;
				}
				i{
					font-size: .26rem;
					font-style: normal;
					color: var(--theme-primary-color);
				}
			}
			.submit{
				background-color: var(--theme-primary-color);
				border-color: var(--theme-primary-color);
				border-radius: 0.14rem;
				height: .8rem;
				line-height: .8rem;
				display: block;
				color: var(--theme-primary-font-color);
				font-size: .24rem!important;
			}
			.aas{
				display: flex;
				margin: .3rem 0;
				span{
					flex: 1;
					display: block;
					text-align: center;
					font-size: .24rem;
					color: var(--theme-primary-color);
				}
			}
		}
	}
</style>